<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<#include "lib/lib.html" />
<title>财务中心</title>
</head>
<body>
	<nav class="breadcrumb">
	 	 <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务中心 <span class="c-gray en">&gt;</span> 用户打赏明细
		 <a  class="btn btn-success radius r mr-20"  style="line-height: 1.6em; margin-top: 3px" href="javascript:location.replace(location.href);" title="刷新">
		 <i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="pd-20 text-c">
		<div class="text-c">
			<form action="${basePath}/reward/list.do">
			<div class="text-c" style="padding-bottom: 15px">
				<input type="text" name="userName" id="userName" placeholder="用户账号" value='${map.userName}' style="width: 200px" class="input-text">
				<input type="text" name="userRealname" id="userRealname" placeholder="用户姓名" value='${map.userRealname}' style="width: 200px" class="input-text">
				<input type="text" name="orderNo" id="orderNo" placeholder="订单号" value='${map.orderNo}' style="width: 200px" class="input-text">
				<input type="text" name="washerJobnumber" id="washerJobnumber" placeholder="洗车工工号" value='${map.washerJobnumber}' style="width: 200px" class="input-text">
			</div>
			<div class="text-c">	
				支付方式<select  name="rechargeType" style="width: 150px;height: 29px;">
					<option value="">请选择</option>
					<option value="1" <#if map.rechargeType==1>selected</#if>>微信</option>
					<option value="2" <#if map.rechargeType==2>selected</#if>>余额</option>
				</select>
				交易平台<select  name="tradeType" style="width: 150px;height: 29px;">
					<option value="">请选择</option>
					<option value="1" <#if map.tradeType==1>selected</#if>>公众号</option>
					<option value="2" <#if map.tradeType==2>selected</#if>>app</option>
				</select>
				订单状态<select  name="orderStatus" style="width: 150px;height: 29px;">
					<option value="">请选择</option>
					<option value="1" <#if map.orderStatus==1>selected</#if>>未支付</option>
					<option value="2" <#if map.orderStatus==2>selected</#if>>已支付</option>
					<option value="3" <#if map.orderStatus==3>selected</#if>>失败</option>
					<option value="4" <#if map.orderStatus==4>selected</#if>>已结算</option>
				</select>
				<button name="" id="" class="btn btn-success" type="submit"> <i class="Hui-iconfont">&#xe665;</i> 搜索 </button>
			</div>
			</form>
		</div>
		<div class="mt-20">
			<div id="page" class="holder"></div>  
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th>用户昵称</th>
						<th>用户姓名</th>
						<th>订单号</th>
						<th>洗车工工号</th>
						<th>消费订单ID</th>
						<th>订单金额</th>
						<th>支付方式</th>
						<th>交易平台</th>
						<th>订单状态</th>
						<th>订单支付时间</th>
						<th>订单创建时间</th>
					</tr>
				</thead>
				<tbody>
					<#if list.dataList?? && list.dataList?size gt 0>
					<#list list.dataList as dl >
						<tr class="text-c">
							<td>${dl.userNick!}</td>
							<td>${dl.userRealname!}</td>
							<td>${dl.orderNo!}</td>
							<td>${dl.washerJobnumber!}</td>
							<td>${dl.objectsId!}</td>
							<td>${dl.orderBalance / 100}</td>
							<td>
								<#if dl.rechargeType == 1>
									微信
								<#else>
									余额
								</#if>
							</td>
							<td>
								<#if dl.tradeType == 1>
									公众号
								<#else>
									app
								</#if>
							</td>
							<td>
								<#if dl.orderStatus == 1>
									未支付
								<#elseif dl.orderStatus == 2>
									已支付
								<#elseif dl.orderStatus == 3>
									失败
								<#else>
									已结算
								</#if>
							</td>
							<td>${dl.rechargeTime?string('yyyy-MM-dd')}</td>
							<td>${dl.createTime?string('yyyy-MM-dd')}</td>
						</tr>
					</#list>
					</#if>
				</tbody>
			</table>
			</br>
			<div class="page_list"></div>
		</div>
	</div>
	<script type="text/javascript">
	$(function(){
	 	laypage({
	 	    cont: $('.page_list'), //容器。值支持id名、原生dom对象，jquery对象,
		    pages: ${list.endPage! }, //总页数
	 	    //skip: true, //是否开启跳页
// 	    	skin: 'molv',
	 	    groups: 10, //连续显示分页数
	 	    first: '首页', //若不显示，设置false即可
	 	    last: '尾页', //若不显示，设置false即可
	 	    curr:${list.curPage!},
	 	   	hash: true, //开启hash
	 	    skin: '#00AA91',
	 	    jump: function(obj,first){ //触发分页后的回调
// 	 	       $('.view').html('目前正在第'+ obj.curr +'页，一共有：'+ obj.pages +'页');
	 	    	if(!first){
	 	         	 window.location.href="${basePath}/reward/list.do?curPage="+obj.curr +"&pageData="+10;
	 	    	}
	 	    }
	 	});
	});
	</script>
</body>
</html>